package com.situ.lession1226.service.impl;

import com.situ.lession1226.dao.AccountDAO;
import com.situ.lession1226.model.Account;
import com.situ.lession1226.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 功能：
 *
 */
@Service
public class AccountServiceImpl implements AccountService {
    private AccountDAO accountDAO;

    @Autowired
    public void setUserDAO(AccountDAO accountDAO) {
        this.accountDAO = accountDAO;
    }

    @Override
    public Account findByUsername(String username) {
        return accountDAO.findByUsername(username);
    }
}
